import request from "@/utils/request"

// 登录接口
export const loginApi = (data) => (
  request.post(`/sys/login`,data)
)

// 获取用户信息
export const getUserInfo = () => (
  request.post('/sys/profile')
)

// 获取用户头像
export const getUserPhotoApi = (id) => (
  request.get(`/sys/user/${id}`)
)

